﻿using Sipek.Common;
using System;
using System.Collections.Generic;

namespace SoftPhone
{
    internal class PhoneConfig : IConfiguratorInterface
    {

        List<IAccount> _acclist = new List<IAccount>();
        private static List<string> _codec = new List<string>() { "PCMU/8000/1", "PCMA/8000/1", "G722/16000/1" };

        internal PhoneConfig()
        {
            _acclist.Add(new MyAccount());
        }


        public bool AAFlag
        {
            get
            {
                return false;
            }
            set { }
        }

        public List<IAccount> Accounts
        {
            get { return _acclist; }
        }

        public bool CFBFlag
        {
            get
            {
                return false;
            }
            set { }
        }

        public string CFBNumber
        {
            get
            {
                return "";
            }
            set { }
        }

        public bool CFNRFlag
        {
            get
            {
                return false;
            }
            set { }
        }

        public string CFNRNumber
        {
            get
            {
                return "";
            }
            set { }
        }

        public bool CFUFlag
        {
            get
            {
                return false;
            }
            set { }
        }

        public string CFUNumber
        {
            get
            {
                return "";
            }
            set { }
        }

        public List<string> CodecList
        {
            get
            {
                return _codec;
            }
            set { _codec = value; }
        }

        public bool DNDFlag
        {
            get
            {
                return false;
            }
            set { }
        }

        public int DefaultAccountIndex
        {
            get { return 0; }
        }

        public bool IsNull
        {
            get { return false; }
        }

        public bool PublishEnabled
        {
            get
            {
                return false;
            }
            set { }
        }

        public int SIPPort
        {
            get
            {
                return 5060;
            }
            set { }
        }

        public void Save()
        {
            //TODO;
        }

    }
}
